# Contributor: Henrik Riomar <henrik.riomar@gmail.com>
# Maintainer: Henrik Riomar <henrik.riomar@gmail.com>
pkgname=zfs-prune-snapshots
pkgver=1.1.0
pkgrel=0
pkgdesc="Remove snapshots from one or more zpools that match given criteria"
url="https://github.com/bahamas10/zfs-prune-snapshots"
arch="noarch !armhf !armv7"
license="MIT"
checkdepends="shellcheck"
depends="bash zfs"
subpackages="$pkgname-doc"
options="!check" # check() requires shellcheck
source="$pkgname-$pkgver.tar.gz::https://github.com/bahamas10/zfs-prune-snapshots/archive/v$pkgver.tar.gz
	"

check() {
	make check
}

package() {
	make install PREFIX="/usr" DESTDIR="$pkgdir"
}

sha512sums="bad4f3ba8aa383f6e9f80ab9280e8591a1b19f8d77e22fe0a54d5569030b43eb2e55cb5041a5735287d8ecfb997cfc218959a53cff4529f5221683a7210d0c63  zfs-prune-snapshots-1.1.0.tar.gz"
